namespace Cos.Core.NHibernate.Mapping
{
    #region Usings

    using FluentNHibernate.Mapping;

    #endregion

    public class ForumTopicTagMap : ClassMap<ForumTopicTagDataModel>
    {
        public ForumTopicTagMap()
        {
            this.Table("ForumTopicTag");
            this.LazyLoad();
            this.CompositeId()
                .KeyProperty(x => x.TopicId)
                .KeyProperty(x => x.TagName)
                .KeyProperty(x => x.TagCultureCode);

             Map(x => x.ForumTopicId).Column("TopicID");
            // References(x => x.Tag).Column("TagName");
            // References(x => x.Tag).Column("TagCultureCode");
        }
    }
}